#include "employee.h"
#include <string.h>
using namespace MAN;

Employee::Employee(const char* _name,bool flag,int age,int id)
{
	strcpy(m_strName,_name);
	m_bGender = flag;
	m_nAge = age;
	m_nId =id;
}

Employee::Employee(const Employee& that)
{
	strcpy(m_strName,that.m_strName);
	m_bGender = that.m_bGender;
	m_nAge = that.m_nAge;
	m_nId = that.m_nId;
}
namespace MAN
{
	std::ostream& operator << (std::ostream& os,Employee& e)
	{
	    return os<< "Id: "<<e.m_nId<< "	Name: "<< e.m_strName<< " 性别:"<<(e.m_bGender ? "男性":"女性")<<" 年龄:"<<e.m_nAge << endl;
	}
}
Employee::~Employee()
{

}
